package com.amap.search.entity.db2022;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 中国行政区域字典表
 * </p>
 *
 * @author author
 * @since 2023-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("address_code")
@ApiModel(value="AddressCode对象", description="中国行政区域字典表")
public class AddressCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "区域名")
    @TableField("ad_name")
    private String adName;

    @ApiModelProperty(value = "城市名")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "省名")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "区域编码")
    @TableField("ad_code")
    private String adCode;

    @ApiModelProperty(value = "城市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "省编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "最后更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;


}
